package com.dog.basics.bean.dto.admin.common;

import cn.hutool.core.collection.CollUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 轮播图
 * </p>
 *
 * @author fengjukang
 * @since 2019-12-13
 */
@Data
public class BannerAddDto  {


    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", dataType = "String",required = false)
    private String title;

    /**
     * 广告所属地
     */
    @NotNull(message = "广告所属地不能为空")
    @ApiModelProperty(value = "广告所属地", dataType = "Long", required = true)
    private Long genusId;

    /**
     * 跳转对象ID
     */
    @ApiModelProperty(value = "跳转对象ID", dataType = "Long", required = false)
    private Long objId;

    /**
     * 图片地址
     */

    @NotNull(message = "图片地址不能为空")
    @ApiModelProperty(value = "图片地址", dataType = "List<String> ", required = true)
    private List<String> imgId = CollUtil.newArrayList();

    /**
     * 视频地址
     */
    @ApiModelProperty(value = "视频地址", dataType = "String",required = false)
    private String vedioUrl;
    /**
     * 跳转的url
     */
    @ApiModelProperty(value = "跳转url地址  -1为不跳转", dataType = "String",required = false)
    private String url;

    /**
     * 开始轮播时间
     */
    @ApiModelProperty(value = "开始轮播时间", dataType = "Long",required = false, example = "")
    private Long startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间", dataType = "Long",required = false, example = "")
    private Long endTime;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", dataType = "String",required = false, example = "")
    private String description;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", dataType = "Integer",required = false, example = "")
    private Integer sort;



}
